package org.arain.baseii.system.quick;

import org.arain.baseii.utils.ArainResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
* <p>Title:QuickController </p>
* @author Arain
* @date2017年9月7日
 */
@Controller
@RequestMapping("system/quick")
public class QuickController {
	@Autowired
	private QuickService quickService;
	@RequestMapping("save.do")
	@ResponseBody
	public ArainResult save_01(QuickDto dto) {
		return quickService.save_01(dto);
	}
	
	@RequestMapping(value="load_01.do", produces = "text/json;charset=UTF-8")
	@ResponseBody
	public String load_01(QuickDto dto) {
		return quickService.load_01(dto);
	}
	
	@RequestMapping("delete.do")
	@ResponseBody
	public ArainResult delete_01(QuickDto dto) {
		return quickService.delete_01(dto);
	}
}
